package com.bluecoffee.repository;

import com.bluecoffee.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


/**
 * Created by qianlong on 16/9/27.
 */
@Mapper
public interface BookDao {

    Book getById(Long bookId);

    void insertBook(Book book);

    void deleteAll();

    void updateByPrimaryKey(Book book);

    List<Book> likeTitle(String title);
}
